<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0" />
	<title>个人中心</title>
	<link rel="stylesheet" type="text/css" href="common.css">
</head>
<body class="personclass">
	<a href="persondetail.html">
		<div class="per-head">
			<img src="image/krenz-cushart-180202.jpg" class="avator">
			<div class="nname"></div>
			<div style="float: right;line-height: 0.62rem">
				<img src="image/setup.png" class="rightarrow">
				<label style="font-size: 0.14rem;color: #333333;">设置</label>
			</div>
			<div class="clearfix"></div>
		</div>
	</a>

	<div class="con-box">
		<div class="setion" style="border-right: 1px solid #d6d6d6;">
			<span class="finishjob"></span>
			<div>完成工单数</div>
		</div>
		<div class="setion" style="border-right: 1px solid #d6d6d6;">
			<span style="color: #e57373" class="doingjob" ></span>
			<div>未完成工单数</div>
		</div>
		<div class="setion">
			<span style="color: #26a69a"  class="jobtime">15个</span>
			<div>获得工时</div>
		</div>
	</div>

	<!-- 底部导航栏 -->
	<div class="bottomfix">
		<a href="list.html"><div class="botbtn" style="border-right: 1px solid #d6d6d6;">工单池</div></a>
		<a href="order.html"><div class="botbtn" style="border-right: 1px solid #d6d6d6;">个人工单</div></a>
		<a href="#"><div class="botbtn" style="color: #deaa48;">个人中心</div></a>
	</div>
	<script src="js/jquery-1.8.3.min.js"></script>
	<script src="js/common.js"></script>
	<script type="text/javascript">
		$.ajax({
			type:"POST",
			url:"../Handle/getHandle",
			contentType : "application/json;charset=UTF-8",
			dataType:"Json",
			success:function(res){
				var info = res.info;
				var data = res.object;
				if(info=="success"){
					$(".nname").html(data.real_name);
				}else if(info=="false"){
					window.location.href="login.html";
				}
			}
		})
		
		$.ajax({
			type:"POST",
			url:"../Job/countnum",
			contentType : "application/json;charset=UTF-8",
			dataType:"Json",
			success:function(res){
				var info = res.info;
				var data = res.object;
				if(info=="success"){
					$(".finishjob").html(data.finishcount);
					$(".doingjob").html(data.doingcount);
					$(".jobtime").html(data.timecount);
				}else if(info=="false"){
					window.location.href="login.html";
				}
			}
		})
	</script>
</body>
</html>